home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.programming / comp.sys.amiga.programmer_9512_000057.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  1.8 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!trane.uninett.no!eunet.no!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!nigel.msen.com!zib-berlin.de!news.belwue.de!news.uni-ulm.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!uklirb.informatik.uni-kl.de!feck
  3. From: feck@informatik.uni-kl.de (Christoph Feck IRZ)
  4. Subject: Re: amazing disappearing Write() s
  5. Message-ID: <1994Apr23.205258@informatik.uni-kl.de>
  6. Sender: news@uklirb.informatik.uni-kl.de (Unix-News-System)
  7. Nntp-Posting-Host: uklira.informatik.uni-kl.de
  8. Organization: University of Kaiserslautern, Germany
  9. References:  <1994Apr22.172338.1@utxvms.cc.utexas.edu>
  10. Date: Sat, 23 Apr 1994 18:52:58 GMT
  11. Lines: 24
  12.  
  13. In article <1994Apr22.172338.1@utxvms.cc.utexas.edu>, cbloom@utxvms.cc.utexas.edu writes:
  14. > I have been writing a file-io intensive program (Open/Read/Write/Close) and
  15. > find an erratic/random problem: sometime the changes made by Write don't stay
  16. > made after a Close.  The changes are in effect for subsequent reads in the
  17. > same run, but the changes suddenly disappear when the program compeletes!
  18. > Do I need to Flush() a file before closing it?  Does anyone have any ideas?
  19.  
  20. Close() does a Flush() itself.  But you must Flush() if you change
  21. data transfer direction with buffered files (FRead/FWrite).
  22.  
  23. > Also, there is an OpenFromLock() but no LockFromFH() - why not?  Does Open()
  24.  
  25. It's called DupLockFromFH().  The file will not be closed, unlike
  26. OpenFromLock() where the lock is released.
  27.  
  28. > automatically Lock a file and Close UnLock() ?  If so, is it always ACCESS_
  29. > WRITE ?  How do you control it iit is automatic?
  30.  
  31. It should be ACCESS_READ for MODE_OLD and ACCESS_WRITE otherwise.
  32. Ralph? :)
  33.  
  34. 3k// Christoph Feck, TowerSystems - BOOPSI Class Development
  35. \X/ Amiga - Intuition inside.
  36.